﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="EDP.Application.Web.Area._default" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <style type="text/css">
        .x-column-header {
            text-align: center;
        }
    </style>
    <form id="form1" runat="server">
        <f:PageManager ID="PageManager" AutoSizePanelID="panel" runat="server" />
        <f:HiddenField ID="tb_itemId" runat="server" />
        <f:Panel ID="panel" runat="server" ShowBorder="false" Margin="10" Title="行政区域" Layout="Region">
            <Items>
                <f:Grid ID="grid_provinceList" runat="server" ShowHeader="false" Margin="0" RegionPosition="Left" Width="300" DataKeyNames="ID,Name" EnableCheckBoxSelect="false" AllowPaging="false" AllowSorting="false"
                    OnPreRowDataBound="grid_provinceList_PreRowDataBound" OnRowCommand="grid_provinceList_RowCommand"
                    OnRowClick="grid_provinceList_RowClick" EnableRowClickEvent="true">
                    <Toolbars>
                        <f:Toolbar runat="server" ToolbarAlign="Right">
                            <Items>
                                <f:Button ID="btn_addProvince" runat="server" Text="新增省份" Icon="Add" Margin="0 10 0 0" OnClick="btn_addProvince_Click" />
                            </Items>
                        </f:Toolbar>
                    </Toolbars>
                    <Columns>
                        <f:BoundField DataField="Name" ExpandUnusedSpace="true" HeaderText="省份" />
                        <f:LinkButtonField ColumnID="lb_rovince_enable" Width="75" CommandName="enable" EnableLock="true" HeaderText="启用状态"
                            CommandTitle="设置省份启用状态" ConfirmTarget="Self" ConfirmIcon="Question" TextAlign="center" />
                        <f:LinkButtonField ColumnID="lb_province_edit" Width="30" CommandName="edit" EnableLock="true" CommandTitle="编辑省份" Icon="TableEdit" TextAlign="center" ToolTip="编辑" />
                        <f:LinkButtonField ColumnID="lb_province_delete" Width="30" CommandName="delete" EnableLock="true" CommandTitle="删除省份" ToolTip="删除" Icon="Delete"
                            ConfirmTitle="删除省份" ConfirmText="是否删除该省份？" ConfirmTarget="Self" ConfirmIcon="Question" TextAlign="center" />
                    </Columns>
                </f:Grid>
                <f:Grid ID="grid_cityList" runat="server" ShowHeader="false" Margin="0 0 0 5" RegionPosition="Left" Width="350" DataKeyNames="ID,Name" EnableCheckBoxSelect="false" AllowPaging="false" AllowSorting="false"
                    OnPreRowDataBound="grid_cityList_PreRowDataBound" OnRowCommand="grid_cityList_RowCommand"
                    OnRowClick="grid_cityList_RowClick" EnableRowClickEvent="true">
                    <Toolbars>
                        <f:Toolbar runat="server" ToolbarAlign="Right">
                            <Items>
                                <f:Button ID="btn_addCity" runat="server" Text="新增城市" Icon="Add" Margin="0 10 0 0" OnClick="btn_addCity_Click" />
                            </Items>
                        </f:Toolbar>
                    </Toolbars>
                    <Columns>
                        <f:BoundField DataField="Name" ExpandUnusedSpace="true" HeaderText="城市" />
                        <f:LinkButtonField ColumnID="lb_city_enable" Width="75" CommandName="enable" EnableLock="true" HeaderText="启用状态"
                            CommandTitle="设置城市启用状态" ConfirmTarget="Self" ConfirmIcon="Question" TextAlign="center" />
                        <f:LinkButtonField ColumnID="lb_city_edit" Width="30" CommandName="edit" EnableLock="true" CommandTitle="编辑城市" Icon="TableEdit" TextAlign="center" ToolTip="编辑" />
                        <f:LinkButtonField ColumnID="lb_city_delete" Width="30" CommandName="delete" EnableLock="true" CommandTitle="删除城市" ToolTip="删除" Icon="Delete"
                            ConfirmTitle="删除城市" ConfirmText="是否删除该城市？" ConfirmTarget="Self" ConfirmIcon="Question" TextAlign="center" />
                    </Columns>
                </f:Grid>
                <f:Grid ID="grid_areaList" runat="server" ShowHeader="false" Margin="0 0 0 5" RegionPosition="Left" Width="350" DataKeyNames="ID,Name" EnableCheckBoxSelect="false" AllowPaging="false" AllowSorting="false"
                    OnPreRowDataBound="grid_areaList_PreRowDataBound" OnRowCommand="grid_areaList_RowCommand"
                    OnRowClick="grid_areaList_RowClick" EnableRowClickEvent="true">
                    <Toolbars>
                        <f:Toolbar runat="server" ToolbarAlign="Right">
                            <Items>
                                <f:Button ID="btn_addArea" runat="server" Text="新增区县" Icon="Add" Margin="0 10 0 0" OnClick="btn_addArea_Click" />
                            </Items>
                        </f:Toolbar>
                    </Toolbars>
                    <Columns>
                        <f:BoundField DataField="Name" ExpandUnusedSpace="true" HeaderText="区县" />
                        <f:LinkButtonField ColumnID="lb_area_enable" Width="75" CommandName="enable" EnableLock="true" HeaderText="启用状态"
                            CommandTitle="设置区县启用状态" ConfirmTarget="Self" ConfirmIcon="Question" TextAlign="center" />
                        <f:LinkButtonField ColumnID="lb_area_edit" Width="30" CommandName="edit" EnableLock="true" CommandTitle="编辑区县" Icon="TableEdit" TextAlign="center" ToolTip="编辑" />
                        <f:LinkButtonField ColumnID="lb_area_delete" Width="30" CommandName="delete" EnableLock="true" CommandTitle="删除区县" ToolTip="删除" Icon="Delete"
                            ConfirmTitle="删除区县" ConfirmText="是否删除该区县？" ConfirmTarget="Self" ConfirmIcon="Question" TextAlign="center" />
                    </Columns>
                </f:Grid>
                <f:Grid ID="grid_streetList" runat="server" ShowHeader="false" Margin="0 0 0 5" RegionPosition="Center" DataKeyNames="ID" EnableCheckBoxSelect="false" AllowPaging="false" AllowSorting="false"
                    OnPreRowDataBound="grid_streetList_PreRowDataBound" OnRowCommand="grid_streetList_RowCommand">
                    <Toolbars>
                        <f:Toolbar runat="server" ToolbarAlign="Right">
                            <Items>
                                <f:Button ID="btn_addStreet" runat="server" Text="新增街道" Icon="Add" Margin="0 10 0 0" OnClick="btn_addStreet_Click" />
                                <f:Button ID="btn_more" runat="server" EnablePermission="false" Text="更多..." EnablePostBack="false">
                                    <Menu runat="server" Margin="0">
                                        <f:MenuButton ID="btn_cache" runat="server" Margin="0" Text="重置缓存" ConfirmTitle="重置缓存" ConfirmText="是否重置缓存？" ConfirmTarget="Self" ConfirmIcon="Question" OnClick="btn_cache_Click" />
                                    </Menu>
                                </f:Button>
                            </Items>
                        </f:Toolbar>
                    </Toolbars>
                    <Columns>
                        <f:BoundField DataField="Name" ExpandUnusedSpace="true" HeaderText="街道" />
                        <f:LinkButtonField ColumnID="lb_street_enable" Width="75" CommandName="enable" EnableLock="true" HeaderText="启用状态"
                            CommandTitle="设置街道启用状态" ConfirmTarget="Self" ConfirmIcon="Question" TextAlign="center" />
                        <f:LinkButtonField ColumnID="lb_street_edit" Width="30" CommandName="edit" EnableLock="true" CommandTitle="编辑街道" Icon="TableEdit" TextAlign="center" ToolTip="编辑" />
                        <f:LinkButtonField ColumnID="lb_street_delete" Width="30" CommandName="delete" EnableLock="true" CommandTitle="删除街道" ToolTip="删除" Icon="Delete"
                            ConfirmTitle="删除街道" ConfirmText="是否删除该街道？" ConfirmTarget="Self" ConfirmIcon="Question" TextAlign="center" />
                    </Columns>
                </f:Grid>
            </Items>
        </f:Panel>
        <f:Window ID="win_province" runat="server" OnClose="win_province_Close" />
        <f:Window ID="win_city" runat="server" OnClose="win_city_Close" />
        <f:Window ID="win_area" runat="server" OnClose="win_area_Close" />
        <f:Window ID="win_street" runat="server" OnClose="win_street_Close" />
    </form>
</body>
</html>
